package SFRZ;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.spec.InvalidKeySpecException;

/**
 * @author konley
 * @date 2021-12-11 12:53
 */
public class ReceiverB {
    //解密签名
    public boolean decrypt(String m,String y,String puk) throws Exception {
        boolean result = RSA.verify(m, RSA.getPublicKey(puk), y);
        return result;
    }
}
